package com.corffen.design;

public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentWeather currentWeather = new CurrentWeather();
        ForcastDisplay forcastDisplay = new ForcastDisplay();
        weatherData.addObserver(currentWeather);
        weatherData.addObserver(forcastDisplay);

        weatherData.setWeatherData(20.0f, 83.2f, 25.3f);
        weatherData.setWeatherData(21.0f, 84.2f, 26.3f);
        weatherData.setWeatherData(22.0f, 85.2f, 27.3f);
    }
}
